import request from '@/utils/request'

export function fetchDeptList(query) {
  return request({
    url: '/dept/list',
    method: 'get',
    params: query
  })
}

export function createDept(data) {
  return request({
    url: '/dept',
    method: 'post',
    data: data
  })
}

export function updateDept(data) {
  return request({
    url: '/dept',
    method: 'put',
    data: data
  })
}
